﻿namespace Er
{
    using System;

    using Hdc.Mvvm;

    using Shared.ViewModels;

    public class WordViewModel : ViewModelBase<WordViewModel>, IWordViewModel
    {
        private string _spell;

        private Guid _id;

        public string Spell
        {
            get
            {
                return _spell;
            }
            set
            {
                if (Equals(_spell, value))
                {
                    return;
                }
                _spell = value;
                RaisePropertyChanged(x => x.Spell);
            }
        }

        public Guid Id
        {
            get
            {
                return _id;
            }
            set
            {
                if (Equals(_id, value))
                {
                    return;
                }
                _id = value;
                RaisePropertyChanged(x => x.Id);
            }
        }
    }
}